package com.yanggu.spock.dao;

import com.yanggu.spock.domain.entity.UserEntity;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class UserDao {

    public List<UserEntity> getUserInfo() {
        UserEntity userEntity = new UserEntity();
        userEntity.setId(1);
        userEntity.setName("zhangsan");
        userEntity.setAge(18);
        userEntity.setSex("男");
        userEntity.setEmail("zhangsan@qq.com");
        userEntity.setTelephone("12345678901");
        userEntity.setProvince("上海");
        return List.of(userEntity);
    }

}
